import redis


class RedisClient(object):
    def __init__(self, host='39.97.186.133', port=6379, password='950218'):
        """
        初始化Redis连接
        :param host: Redis 地址
        :param port: Redis 端口
        :param password: Redis 密码
        """
        self.db = redis.StrictRedis(host=host, port=port, password=password, db=0,decode_responses=True)
        self.key = 'report'

    @property
    def get_order_number(self):
        """git
        获取任务
        """
        return self.db.lpop(self.key)
